# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-cpugraph-plugin
pkgver=1.2.10
pkgrel=0
pkgdesc="CPU monitor for the Xfce panel"
url="https://goodies.xfce.org/projects/panel-plugins/xfce4-cpugraph-plugin"
arch="all"
license="GPL-2.0-or-later"
makedepends="libxfce4ui-dev xfce4-panel-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-cpugraph-plugin/${pkgver%.*}/xfce4-cpugraph-plugin-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="
414c2a5da9576d2ed1f5478a07ff5c51c45eaa0a8432a31b6fb2408b81f5ab4485e3b10486af26cf33a18d23e2dc3afe21bf88630e4db91adcfa3e0f80468cf3  xfce4-cpugraph-plugin-1.2.10.tar.bz2
"
